package com.wanmait.houlang.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.houlang.mapper.EnrollmentScheduleMapper;
import com.wanmait.houlang.pojo.*;
import com.wanmait.houlang.service.EnrollmentScheduleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EnrollmentScheduleImpl implements EnrollmentScheduleService {

    @Resource
    private EnrollmentScheduleMapper enrollmentScheduleMapper;

    @Override
    public void insert(EnrollmentSchedule object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(EnrollmentSchedule object) {

    }

    @Override
    public EnrollmentSchedule findById(Integer id) {
        return enrollmentScheduleMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<EnrollmentSchedule> findAll() {
        return null;
    }

    @Override
    public PageInfo<EnrollmentSchedule> findAll(int pageNum, int pageSize, EnrollmentSchedule object) {
        return null;
    }

    //通过学校ID找招生计划表
    @Override
    public List<EnrollmentSchedule> findESBySchoolId(Integer id) {
        return enrollmentScheduleMapper.findESBySchoolId(id);
    }

    //通过下拉列表框的条件找招生计划表
    @Override
    public List<EnrollmentSchedule> findByCondition(DTO dto) {
        return enrollmentScheduleMapper.findByCondition(dto);
    }

    //录取批次
    @Override
    public List<AdmissionsBatch> findAllAdmissionsBatch(Integer yid,Integer gtid) {
        return enrollmentScheduleMapper.findAllAdmissionsBatch(yid,gtid);
    }


}
